home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 2561 < prev    next >
Encoding:
Text File  |  1996-08-05  |  2.0 KB  |  45 lines

  1. Path: nntp.teleport.com!usenet
  2. From: merlyn@stonehenge.com (Randal L. Schwartz)
  3. Newsgroups: comp.lang.misc,comp.lang.perl.misc,comp.lang.tcl,comp.lang.c,comp.lang.java
  4. Subject: Re: Relative Speed of Perl vs. Tcl vs. C
  5. Date: 22 Jan 1996 05:49:28 -0800
  6. Organization: Stonehenge Consulting Services; Portland, Oregon, USA
  7. Sender: merlyn@linda.teleport.com
  8. Message-ID: <ukvim4pceu.fsf@linda.teleport.com>
  9. References: <4dhuoj$cbe@shellx.best.com> <9602122.8425@mulga.cs.mu.OZ.AU>
  10.     <4dudsf$187@cnn.Princeton.EDU>
  11. Reply-To: merlyn@stonehenge.com
  12. NNTP-Posting-Host: linda.teleport.com
  13. In-reply-to: tim@franck's message of 21 Jan 1996 22:14:39 GMT
  14. X-Newsreader: Gnus v5.0.13
  15.  
  16. >>>>> "Tim" == Tim Hollebeek <tim@franck> writes:
  17.  
  18. Tim> An important point, though, is that all 'reasonably' written C programs
  19. Tim> will run within a factor of 2 or so of 'about as fast as you can get,
  20. Tim> while for some problems, Perl won't be able to break through about a
  21. Tim> factor of 7 or so, even if you are a Perl expert.
  22.  
  23. I just want to point out to everyone that you are simply making that
  24. figure up based on what you think Perl is doing internally.
  25.  
  26. Tom Christiansen has had a long-standing bet that someone can't give
  27. him a program in C that he can't make run no more than "e" times
  28. slower (about 2.8 for you non-math-geeks) in Perl.  So far, no one's
  29. done it.
  30.  
  31. That's also been my experience as well.  Perl is *not* slow.  In fact,
  32. a Perl-written egrep is *faster* than most vendor's egrep, for
  33. example.
  34.  
  35. So, if you have a number of "7-times-slower" programs, post'em, and I
  36. bet we can easily boost their speed by two or three times.
  37.  
  38. ObDisclaimer: Yes, I know a few things about Perl. :-)
  39. -- 
  40. Name: Randal L. Schwartz / Stonehenge Consulting Services (503)777-0095
  41. Keywords: Perl training, UNIX[tm] consulting, video production, skiing, flying
  42. Email: <merlyn@stonehenge.com> Snail: (Call) PGP-Key: (finger merlyn@ora.com)
  43. Web: <A HREF="http://www.teleport.com/~merlyn/">My Home Page!</A>
  44. Quote: "I'm telling you, if I could have five lines in my .sig, I would!" -- me
  45.